package jmu.cze.service;

import jmu.cze.pojo.Cabin;
import jmu.cze.pojo.OnFlight;
import jmu.cze.pojo.TicketType;

import java.util.List;
import java.util.Map;

public interface OnFlightService {
    boolean deleteOnFlightByID(int onFlightID);

    boolean insertOnFlight(OnFlight onFlight);

    List<OnFlight> selectOnFlightByFlightID(int flightID);

    boolean updateOnFlight(OnFlight onFlight);


    boolean deleteCabinByID(int cabinID);

    boolean insertCabin(Cabin cabin);

    Map<Integer, Cabin> selectAllCabins();

    boolean updateCabin(Cabin cabin);


    boolean deleteTicketTypeByID(Integer ticketTypeID);

    boolean insertTicketType(TicketType ticketType);

    TicketType selectTicketTypeByID(Integer ticketTypeID);

    List<TicketType> selectTicketTypeByOnFlightID(Integer onFlightID);

    boolean updateTicketType(TicketType ticketType);
}
